<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>角色选择 - 招聘APP</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f9f9f9;
            height: 100vh;
        }
        .app-container {
            max-width: 390px;
            height: 100%;
            margin: 0 auto;
            background-color: white;
        }
        .role-card {
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 20px;
            transition: all 0.3s;
            border: 2px solid transparent;
            cursor: pointer;
        }
        .role-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        .role-card.selected {
            border-color: #1677ff;
            background-color: #f0f7ff;
        }
        .role-card img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 15px;
        }
        .btn-primary {
            background-color: #1677ff;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 15px;
            width: 100%;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        .btn-primary:hover {
            background-color: #0e5ecc;
        }
        .btn-primary:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }
    </style>
</head>
<body>
    <div class="app-container relative">
        <div class="pt-10 px-6">
            <div class="text-center mb-8">
                <h1 class="text-2xl font-bold text-gray-800">选择您的角色</h1>
                <p class="text-gray-500">请选择您想要使用的身份</p>
            </div>
            
            <div class="my-10">
                <div class="role-card bg-white shadow-md flex flex-col items-center" id="company-role">
                    <img src="https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8Y29tcGFueXxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=200&h=200&q=80" alt="企业">
                    <h2 class="text-xl font-semibold mb-2">企业</h2>
                    <p class="text-gray-500 text-center">发布职位、筛选人才、在线面试</p>
                    <div class="mt-4 flex items-center justify-center w-full">
                        <div class="w-6 h-6 rounded-full border-2 border-gray-300 flex items-center justify-center" id="company-check">
                            <i class="fas fa-check text-blue-500 hidden"></i>
                        </div>
                    </div>
                </div>
                
                <div class="role-card bg-white shadow-md flex flex-col items-center" id="talent-role">
                    <img src="https://images.unsplash.com/photo-1507679799987-c73779587ccf?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTB8fHByb2Vzc2lvbmFsfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=200&h=200&q=80" alt="人才">
                    <h2 class="text-xl font-semibold mb-2">人才</h2>
                    <p class="text-gray-500 text-center">创建简历、寻找工作、在线面试</p>
                    <div class="mt-4 flex items-center justify-center w-full">
                        <div class="w-6 h-6 rounded-full border-2 border-gray-300 flex items-center justify-center" id="talent-check">
                            <i class="fas fa-check text-blue-500 hidden"></i>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="mt-10">
                <button class="btn-primary" id="continue-btn" disabled>继续</button>
            </div>
            
            <div class="text-center mt-6">
                <p class="text-gray-400 text-sm">您可以随时在个人设置中切换角色</p>
            </div>
        </div>
        
        <!-- 移除底部导航 -->
    </div>

    <script>
        // 角色选择逻辑
        const companyRole = document.getElementById('company-role');
        const talentRole = document.getElementById('talent-role');
        const companyCheck = document.getElementById('company-check');
        const talentCheck = document.getElementById('talent-check');
        const continueBtn = document.getElementById('continue-btn');
        
        let selectedRole = null;
        
        companyRole.addEventListener('click', () => {
            selectRole('company');
        });
        
        talentRole.addEventListener('click', () => {
            selectRole('talent');
        });
        
        function selectRole(role) {
            selectedRole = role;
            
            if (role === 'company') {
                companyRole.classList.add('selected');
                talentRole.classList.remove('selected');
                companyCheck.querySelector('i').classList.remove('hidden');
                talentCheck.querySelector('i').classList.add('hidden');
            } else {
                talentRole.classList.add('selected');
                companyRole.classList.remove('selected');
                talentCheck.querySelector('i').classList.remove('hidden');
                companyCheck.querySelector('i').classList.add('hidden');
            }
            
            continueBtn.disabled = false;
        }
        
        continueBtn.addEventListener('click', () => {
            if (!selectedRole) return;
            localStorage.setItem('role', selectedRole);
            if (selectedRole === 'company') {
                window.location.href = 'company-info.html';
            } else {
                window.location.href = 'talent-info.html';
            }
        });
    </script>
</body>
</html> 